﻿using BLL;
using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Account
{
    public partial class Register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            var user = new User
            {
                UserType = 0,
                UserIdentity = TextBox1.Text.Trim(),
                UserPassword = TextBox2.Text.Trim()
            };
            UserService.Register(user);
            Label1.Text = "注册成功";
        }
    }
}